package com.tianji.api.client.remark;


import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import com.tianji.authsdk.resource.config.FeignRelayUserAutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

//todo 添加拦截器 可以跨服务传递用户信息
@FeignClient(value = "tj-remark",
        fallbackFactory = RemarkClientFallback.class,
        configuration = FeignRelayUserAutoConfiguration.class)
public interface RemarkClient {
    @GetMapping("/likeds/list")
    Set<Long> queryLiked(@RequestParam List<Long> bizIds);

    void deleteLiked(Long id);
}
